﻿@using DevExpress.Blazor.Internal
@using DevExpress.ExpressApp.Blazor.Components
@using Microsoft.AspNetCore.Components.Web

<div class="action @(CssClass)" title="@Tooltip" @onclick="Click" @attributes="Attributes">
    <div class="action-content" style="--action-icon-size:@(IconSize)px">
        @if (string.IsNullOrWhiteSpace(IconColor))
        {
            @DxImage.IconCssOrImage(null, ImageUrlService.GetImageUrl(IconName), "action-icon")
        }
        else
        {
            <XafImage ImageName="@IconName" Size="@IconSize" Color="@IconColor" />
        }
    </div>
</div>
